<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: animation  YAHOO.util.Bezier   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>animation&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_animation.html" title="animation">animation</a>
                 &gt; YAHOO.util.Bezier 
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <h2>
                        

                        
                        
                            Class <b property="yui:name">YAHOO.util.Bezier</b>
                        <span class="extends">
                        </span>

                    </h2>
                    <!-- class tree goes here -->
                    
                
  

                    <div class="summary description" property="yui:description">
                        计算二次函数贝塞尔曲线中对应的点
                    </div>

                    
                    <div rel="yui:properties" resource="#properties">

                    </div>

                    <div rel="yui:methods" resource="#methods">
                        <div class="section method details">
                            <h3 id="methods">Methods</h3>
                            <div class="content">
                                    <div class="" rel="yui:method" resource="#method_getPosition">
                                    <h4>
                                        <a name="method_getPosition">getPosition</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        Array
                                            <strong property="yui:name">getPosition</strong>
                                           (
                                                
                                                        
                                                         对应贝塞尔曲线的点
                                                    
                                                
                                                        , 
                                                         为
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            根据 t 参数获取动画元素当前对应的位置
每个点（point）以数组的形式包含 x 和 y 两个值（例如 0 = x, 1 = y）
至少需要两个点（对应开始和结束两个点）
首先是开始的点，最后个是结束的点
额外的控制点是可选项
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">对应贝塞尔曲线的点</span>
                                                        &lt;<span property="yui:type">Array</span>&gt;
                                                        </code>
                                                        <span property="yui:description"></span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">为</span>
                                                        &lt;<span property="yui:type">Number</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 0 和 1 之间的值，决定当前位置</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        Array
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">返回包含 x 和 y 的数组数据</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                            </div>
                        </div>

                    </div>

                    <div rel="yui:events" resource="#events">


                    </div>

                    <div rel="yui:attributes" resource="#configattributes">

                    </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class="selected"><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.Anim.html" title="YAHOO.util.Anim">YAHOO.util.Anim</a></li>
                                <li class=""><a href="YAHOO.util.AnimMgr.html" title="YAHOO.util.AnimMgr">YAHOO.util.AnimMgr</a></li>
                                <li class="selected"><a href="YAHOO.util.Bezier.html" title="YAHOO.util.Bezier">YAHOO.util.Bezier</a></li>
                                <li class=""><a href="YAHOO.util.ColorAnim.html" title="YAHOO.util.ColorAnim">YAHOO.util.ColorAnim</a></li>
                                <li class=""><a href="YAHOO.util.Easing.html" title="YAHOO.util.Easing">YAHOO.util.Easing</a></li>
                                <li class=""><a href="YAHOO.util.Motion.html" title="YAHOO.util.Motion">YAHOO.util.Motion</a></li>
                                <li class=""><a href="YAHOO.util.Scroll.html" title="YAHOO.util.Scroll">YAHOO.util.Scroll</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="animation.js.html" title="animation.js">animation.js</a></li>
                        </ul>
                    </div>


                    <div id="methodsList" class="module">
                        <h4>方法</h4>
                        <ul class="content">        
                                <li class=""><a href="#method_getPosition" title="getPosition">getPosition</a></li>
                        </ul>
                    </div>



            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.Anim.html#method_animate", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "animate"}, {"url": "YAHOO.util.Anim.html#property_attributes", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "attributes"}, {"url": "YAHOO.util.Anim.html#property_currentFrame", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "currentFrame"}, {"url": "YAHOO.util.AnimMgr.html#property_delay", "access": "", "host": "YAHOO.util.AnimMgr", "type": "property", "name": "delay"}, {"url": "YAHOO.util.Anim.html#method_doMethod", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "doMethod"}, {"url": "YAHOO.util.Anim.html#property_duration", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "duration"}, {"url": "YAHOO.util.AnimMgr.html#property_fps", "access": "", "host": "YAHOO.util.AnimMgr", "type": "property", "name": "fps"}, {"url": "YAHOO.util.Anim.html#method_getAttribute", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "getAttribute"}, {"url": "YAHOO.util.Anim.html#method_getDefaultUnit", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "getDefaultUnit"}, {"url": "YAHOO.util.Anim.html#method_getEl", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "getEl"}, {"url": "YAHOO.util.Bezier.html#method_getPosition", "access": "", "host": "YAHOO.util.Bezier", "type": "method", "name": "getPosition"}, {"url": "YAHOO.util.Anim.html#method_getStartTime", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "getStartTime"}, {"url": "YAHOO.util.Anim.html#method_init", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "init"}, {"url": "YAHOO.util.Anim.html#method_isAnimated", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "isAnimated"}, {"url": "YAHOO.util.Anim.html#property_method", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "method"}, {"url": "YAHOO.util.Anim.html#event_onComplete", "access": "", "host": "YAHOO.util.Anim", "type": "event", "name": "onComplete"}, {"url": "YAHOO.util.Anim.html#event_onStart", "access": "", "host": "YAHOO.util.Anim", "type": "event", "name": "onStart"}, {"url": "YAHOO.util.Anim.html#event_onTween", "access": "", "host": "YAHOO.util.Anim", "type": "event", "name": "onTween"}, {"url": "YAHOO.util.AnimMgr.html#method_registerElement", "access": "", "host": "YAHOO.util.AnimMgr", "type": "method", "name": "registerElement"}, {"url": "YAHOO.util.AnimMgr.html#method_run", "access": "", "host": "YAHOO.util.AnimMgr", "type": "method", "name": "run"}, {"url": "YAHOO.util.Anim.html#method_setAttribute", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "setAttribute"}, {"url": "YAHOO.util.Anim.html#method_setEl", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "setEl"}, {"url": "YAHOO.util.AnimMgr.html#method_start", "access": "", "host": "YAHOO.util.AnimMgr", "type": "method", "name": "start"}, {"url": "YAHOO.util.Anim.html#method_stop", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "stop"}, {"url": "YAHOO.util.AnimMgr.html#method_stop", "access": "", "host": "YAHOO.util.AnimMgr", "type": "method", "name": "stop"}, {"url": "YAHOO.util.Anim.html#method_toString", "access": "", "host": "YAHOO.util.Anim", "type": "method", "name": "toString"}, {"url": "YAHOO.util.Anim.html#property_totalFrames", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "totalFrames"}, {"url": "YAHOO.util.Anim.html#property_useSeconds", "access": "", "host": "YAHOO.util.Anim", "type": "property", "name": "useSeconds"}];
</script>
</body>
</html>
